#coding = utf-8

import re
import requests
from bs4 import BeautifulSoup


login_url = "https://gitee.com/login"

s = requests.session()
r =  s.get(login_url)
html = r.text
soup = BeautifulSoup(html,"html.parser")
authenticity_token = soup.find("input",{"name":"authenticity_token"}).get("value")

data = {
"utf8":"✓",
"authenticity_token":authenticity_token,
"user[login]":"498665135@qq.com",
"user[password]":"woaini1314!",
"user[remember_me]":"0",
"commit":"登 录"
        }

r = s.post(login_url,data = data)
html = r.text

